﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddQuestion.ascx.cs" Inherits="DesktopModules.Surveys.DesktopModules_Surveys_AddQuestion" %>
<%@ Register Src="../../controls/texteditor.ascx" TagName="texteditor" TagPrefix="uc1" %>
<div id="easy_main">
    <div class="maskTwoCollum">
        <div class="holderTwoCollum">
            <!-- begin of left content -->
            <div class="leftTwoCollum">
                <div>
                    <!-- Nội dung menuleft -->
                </div>
            </div>
            <!-- end of left content -->
            <!-- begin content center-->
            <div class="mainTwoCollum">
                <%-- <div class="easy_path">
                    <a href="#">Tên trang 1</a> > <a href="#">Tên trang 2</a>
                </div>--%>
                <div>
                    <h1 class="titleh1">
                        <!-- Tieu de thong bao cua form-->
                        <asp:Label ID="lblTitlePage" meta:resourcekey="lblTitlePage" runat="server" Text="Thêm mới survey"></asp:Label>
                    </h1>
                </div>
                <%-- <div class="el_tabtop_padding">
                    <!-- Menu top-->
                    Nếu form có chứa menutop
                </div>--%>
                <asp:UpdatePanel ID="updatePanel" runat="server">
                    <ContentTemplate>
                        <div class="easy_info_action">
                            <asp:Label ID="lblAnnoucument" CssClass="lbltitleh3" runat="server" Text="Chuỗi thông báo"
                                meta:resourcekey="lblAnnoucumentResource1"></asp:Label>
                        </div>
                        <div class="easy_box_control_top">
                            <!-- chua cac buttion ở vị trí top -->
                            <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" meta:resourcekey="btnAdd"
                                OnClick="btnAdd_Click" />
                            <asp:Button ID="btnRefresh" runat="server" meta:resourcekey="btnRefresh" Text="Làm mới"
                                OnClick="btnReferch_Click" />
                            <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" Text="Hủy bỏ"
                                OnClick="btnCancel_Click" />
                            <asp:Button ID="btnBack" runat="server" meta:resourcekey="btnBack" Text="Quay lại"
                                OnClick="btnBack_Click" />
                        </div>
                        <div class="easy_info_action_right">
                            <!-- Phan chu thich vi du các chỗ đánh dau * là không được nhập rỗng-->
                            <asp:Label ID="lblRequired" CssClass="lbltitleh3" runat="server" Text="<font color='red'>* </font> Không được nhập rỗng"
                                meta:resourcekey="lblRequired"></asp:Label>
                        </div>
                        <!-- Begin noi dung -->
                        <div>
                            <table class="easy_table_full ">
                                <tr>
                                    <td class="FirstBoxCoverCol1" style="width: 140px">
                                        <asp:Label ID="QuestionTypeLabel" CssClass="lblname" runat="server" Width="140px"
                                            Text="Loại câu hỏi" meta:resourcekey="QuestionTypeLabelResource1"></asp:Label>
                                    </td>
                                    <td class="FirstBoxCoverCol2 " style="width: 250px">
                                        <asp:DropDownList ID="cboQuestionType" Width="252px" CssClass="cbostyle" runat="server"
                                            meta:resourcekey="cboOrganizationResource1" OnSelectedIndexChanged="cboQuestionType_SelectedIndexChanged"
                                            AutoPostBack="True">
                                            <asp:ListItem Value="1" meta:resourcekey="ListItemResource1">Multi choice</asp:ListItem>
                                            <asp:ListItem Value="2" meta:resourcekey="ListItemResource2">Input text</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="BoxCoverCol1">
                                        <asp:Label ID="ContentLabel" CssClass="lblname" runat="server" Width="140px" Text="Câu hỏi <font color='red'>* </font>"
                                            meta:resourcekey="lblLoginName"></asp:Label>
                                    </td>
                                    <td class="BoxCoverCol2">
                                        <uc1:texteditor ID="txtContent" runat="server" />
                                    </td>
                                </tr>
                                <div id="divAnser" runat="server">
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="answerLabel" Text="Câu trả lời"></asp:Label>
                                        </td>
                                        <td>
                                            <uc1:texteditor ID="txtAnswer" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Button ID="AddAnswerButton" runat="server" Text="Add" OnClick="AddAnswerButtonClick" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="answerList" Text="Danh sách câu trả lời"></asp:Label>
                                        </td>
                                        <td>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:ListBox ID="lstOptions" runat="server" Rows="10" DataTextField="Answer" DataValueField="SAnswerID"
                                                            CssClass="NormalTextBox" Width="300px"></asp:ListBox>
                                                    </td>
                                                    <td height="100%">
                                                        <table height="100%">
                                                            <tr>
                                                                <td valign="top">
                                                                    <asp:ImageButton ID="cmdUp" resourcekey="cmdUp" runat="server" AlternateText="Move Option Up"
                                                                        CommandName="up" ImageUrl="~/images/up.gif" OnClick="cmdUp_Click"></asp:ImageButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top">
                                                                    <asp:ImageButton ID="cmdDown" resourcekey="cmdDown" runat="server" AlternateText="Move Option Down"
                                                                        CommandName="down" ImageUrl="~/images/dn.gif" OnClick="cmdDown_Click"></asp:ImageButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="bottom">
                                                                    <asp:ImageButton ID="cmdDeleteOption" key="cmdDeleteOption" runat="server" AlternateText="Delete Option"
                                                                        ImageUrl="~/images/delete.gif" OnClick="cmdDeleteOption_Click"></asp:ImageButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </div>
                                <tr>
                                    <td class="BoxCoverCol1">
                                        <asp:Label ID="PublicLabel" CssClass="lblname" runat="server" Width="140px" Text="Chia sẻ"></asp:Label>
                                    </td>
                                    <td class="BoxCoverCol2">
                                        <asp:CheckBox ID="publicCheckBox" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <!-- end noi dung -->
                        <div class="easy_box_control_bottom">
                            <!-- chua cac buttion ở vị trí bottom -->
                            <asp:Button ID="btnAdd1" runat="server" Text="Thêm mới" meta:resourcekey="btnAdd"
                                OnClick="btnAdd_Click" />
                            <asp:Button ID="btnRefresh1" runat="server" meta:resourcekey="btnRefresh" Text="Làm mới"
                                OnClick="btnReferch_Click" />
                            <asp:Button ID="btnCancel1" runat="server" meta:resourcekey="btnCancel" Text="Hủy bỏ"
                                OnClick="btnCancel_Click" />
                            <asp:Button ID="btnBack1" runat="server" meta:resourcekey="btnBack" Text="Quay lại"
                                OnClick="btnBack_Click" />
                        </div>
                        <!-- end of main content -->
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <!-- end content center-->
        </div>
    </div>
</div>